package com.nineclock.common.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.springframework.security.core.GrantedAuthority;

import java.util.Date;
import java.util.List;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UserInfo {
    private Long id; //用户ID
    private String username; //用户名
    private String mobile;//手机号
    private String wxAccount;//微信
    private String email;//邮箱
    private String qqAccount;//QQ
    private String color;//颜色
    //private String icon;

    //公司用户相关信息
    private Long companyId;
    private String companyName;
    private Long companyUserId;
    private Long departmentId;
    private String departmentName;
    private String post;
    private String workNumber;
    private Date timeEntry;
    private boolean enable;

    //用户登录采用的客户端ID
    private String clientId;// PC, APP


    @JsonIgnore  //忽略转为json
    private List<NcAuthority> grantedAuthorities; //权限集合

}   